package ArraySorting;

/**
 * Created by pc on 22.06.14.
 */
public class ArrSorting {



    public int[] sortArr(int array[]){

        int k, s, m;
        for(m = 1; m < array.length; m++){
            for(k = 0; k < array.length - m; k++){
                if(array[k] > array[k + 1]){
                    s = array[k];
                    array[k] = array[k + 1];
                    array[k + 1] = s;
                }
            }
        }

        return array;


    }

}
